Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@loopback/dist-util
Advanced tools
Utilities to work with dist
folders used by different Node.js versions.
version | directory |
---|---|
6.x LTS | not supported |
8.x LTS | dist8 |
9.x | dist8 |
10.x | dist10 |
newer | dist10 |
Run the following command to install this package:
$ npm install @loopback/dist-util
Configure your TypeScript build to produce two distribution versions:
dist8
compiled for es2017
targetdist10
compiled for es2018
targetPut the following line to your main index.js
file:
module.exports = require('@loopback/dist-util').loadDist(__dirname);
// calls `require(__dirname + '/dist8')` or `require(__dirname + '/dist10')`
It is also possible to obtain the name of the correct dist
directory without
loading the dist files:
const dist = require('@loopback/dist-util').getDist();
console.log(dist);
// prints `dist8` or `dist10`
See all contributors.
MIT
FAQs
Select dist directory based on Node.js major version.
We found that @loopback/dist-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.